extends Camera2D

@export var tileMap:TileMap

func _ready() -> void:
	var mapRect=tileMap.get_used_rect()
	var tileSize=tileMap.cell_quadrant_size
	limit_top = mapRect.position.y*tileSize
	limit_left = mapRect.position.x*tileSize
	limit_right=mapRect.end.x*tileSize
	limit_bottom=mapRect.end.y*tileSize
	reset_smoothing()

func _physics_process(_delta: float) -> void:
	pass
